
<script>
export default {
  onLaunch (options) {
    // Do something initial when launch.
    console.log('App onLaunch, env文件自定义的环境变量VUE_APP_TEST值:', process.env.VUE_APP_TEST)

    // 初始化主题
    this.$store.dispatch('shop/theme/set', 'dark')
    // 获取购物车数据
    this.$store.dispatch('shop/cart/load')
  },
  onShow (options) {
  },
  onHide () {
  },
  onError (msg) {
  },
  globalData () {
    return {
      a: 'I am global data'
    }
  }
}
</script>

<style lang="scss">
  @import "native/vant-weapp/lib/common/index.wxss";
  @import "~@/static/style/public-class.scss";
  @import "~@/static/style/theme/register.scss";

</style>
